import request from '@/utils/request'

// 查询方案流程列表
export function listSchemeflow(query) {
  return request({
    url: '/house_sale/schemeflow/list',
    method: 'get',
    params: query
  })
}

// 查询方案流程详细
export function getSchemeflow(flowid) {
  return request({
    url: '/house_sale/schemeflow/' + flowid,
    method: 'get'
  })
}

// 新增方案流程
export function addSchemeflow(data) {
  return request({
    url: '/house_sale/schemeflow',
    method: 'post',
    data: data
  })
}

// 修改方案流程
export function updateSchemeflow(data) {
  return request({
    url: '/house_sale/schemeflow',
    method: 'put',
    data: data
  })
}

// 删除方案流程
export function delSchemeflow(flowid) {
  return request({
    url: '/house_sale/schemeflow/' + flowid,
    method: 'delete'
  })
}
